#include <iostream>
#define WIN32

#ifdef WIN32
# include <Winsock2.h>
# include "winNetwork.h"
#else
# include "unixNetwork.h"
#endif // WIN32

int		main(void)
{
	INetwork	*network;
	handle		client;

#ifdef WIN32
	network = new winNetwork(AF_INET, SOCK_STREAM, IPPROTO_TCP, "127.0.0.1", 4242, 10);
#else
	network = new unixNetwork(AF_INET, SOCK_STREAM, IPPROTO_TCP, "127.0.0.1", 4242, 10);
#endif // WIN32
	if (network->initialize())
		if (network->acceptNetwork(&client))
		{
			std::cout << "new client : " << client << std::endl;
			network->closeSocket(client);
		}
	delete network;
	return (0);
}
